package com.tianji.promotion.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.promotion.domain.po.Coupon;
import com.tianji.promotion.domain.po.ExchangeCode;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.promotion.domain.query.CodeQuery;
import com.tianji.promotion.domain.vo.CouponCodeVO;
import com.tianji.promotion.domain.vo.CouponScopeVO;

import java.util.List;

/**
 * <p>
 * 兑换码 服务类
 * </p>
 *
 * @author author
 * @since 2024-11-20
 */
public interface IExchangeCodeService extends IService<ExchangeCode> {
    /**
     * 异步生成优惠券兑换码
     *
     * @param coupon
     */
    void asyncGenerateCode(Coupon coupon);

    /**分页查看兑换码
     * @param query
     * @return
     */
    PageDTO<CouponCodeVO> queryCouponScopeList(CodeQuery query);

    Boolean updateExchangeMark(long serialNum, boolean b);
}
